import request from '@/utils/request'

// 查询项目负责人委托历史变更记录 列表
export function listWorkflowAgencyHistory(query) {
  return request({
    url: '/projectLeaderWorkbeanch/workflowAgencyHistory/list',
    method: 'get',
    params: query
  })
}

// 查询项目负责人委托历史变更记录 详细
export function getWorkflowAgencyHistory(guid) {
  return request({
    url: '/projectLeaderWorkbeanch/workflowAgencyHistory/' + guid,
    method: 'get'
  })
}

// 新增项目负责人委托历史变更记录 
export function addWorkflowAgencyHistory(data) {
  return request({
    url: '/projectLeaderWorkbeanch/workflowAgencyHistory',
    method: 'post',
    data: data
  })
}

// 新增项目负责人委托历史变更记录 
export function cancleAgency(data) {
  return request({
    url: '/projectLeaderWorkbeanch/workflowAgencyHistory/cancleAgency',
    method: 'post',
    data: data
  })
}

// 修改项目负责人委托历史变更记录 
export function updateWorkflowAgencyHistory(data) {
  return request({
    url: '/projectLeaderWorkbeanch/workflowAgencyHistory',
    method: 'put',
    data: data
  })
}

// 删除项目负责人委托历史变更记录 
export function delWorkflowAgencyHistory(guid) {
  return request({
    url: '/projectLeaderWorkbeanch/workflowAgencyHistory/' + guid,
    method: 'delete'
  })
}

// 导出项目负责人委托历史变更记录 
export function exportWorkflowAgencyHistory(query) {
  return request({
    url: '/projectLeaderWorkbeanch/workflowAgencyHistory/export',
    method: 'get',
    params: query
  })
}